.wdu-checkbox {
    display: inline-flex;
    align-items: center;
    position: relative;
    user-select: none;
    cursor: pointer;
    .wdu-text-normal();

    &::before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        border-radius: 4px;
        overflow: hidden;
        .wdu-border-light();
        .inside-shadow-light();
        border-width: 2px;
    }

    &__input {
        visibility: hidden;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }

    @keyframes checked {
        from {
            opacity: 0;
            scale: 0.1;
        }

        to {
            opacity: 1;
            scale: 1;
        }
    }

    &__checked {
        &::before {
            animation: checked 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s 1
                normal forwards;
            background: url('/src/icon/checked-rect.svg')
                center/calc(100% + 4px) calc(100% + 4px) no-repeat;
        }
    }

    &__halfChecked {
        &::before {
            animation: checked 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s 1
                normal forwards;
            background: url('/src/icon/half-checked.svg')
                center/calc(100% + 4px) calc(100% + 4px) no-repeat;
        }
    }

    &__disabled {
        cursor: not-allowed;
        opacity: 0.7;
    }

    &__small {
        font-size: 12px;
        &::before {
            width: 14px;
            height: 14px;
            border-radius: 4px;
        }
    }

    &__normal {
        &::before {
            width: 16px;
            height: 16px;
            border-radius: 4px;
        }
    }

    &__large {
        font-size: 16px;
        &::before {
            width: 18px;
            height: 18px;
            border-radius: 4px;
        }
    }
}
